#ifndef MODIFYUSRINFO_H
#define MODIFYUSRINFO_H

#include <QWidget>

namespace Ui {
class ModifyUsrInfo;
}

class ModifyUsrInfo : public QWidget
{
    Q_OBJECT

public:
    explicit ModifyUsrInfo(const QString&usrName,const QString&password,QWidget *parent = nullptr);
    ~ModifyUsrInfo();

    bool validateString(const QString &input);

private slots:
    void on_submitBtn_clicked();

    void on_cancelBtn_clicked();

    void on_comboBox_currentIndexChanged(int index);

signals:
    void sendModifyNewItems(const QString&newName,const QString&newPwd);
private:
    Ui::ModifyUsrInfo *ui;

    QString m_usrName;
    QString m_password;
};

#endif // MODIFYUSRINFO_H
